<?php

class Engine_Form_Element_Multicheckbox extends Engine_Form_Element {

    protected $options = array();

    public function __construct($options) {
        $this->options = $options ;
    }

    public function compile(){
        $this->options;
        foreach ($this->options as $value){
            $result = '';
            $result .= '<label class="checkbox">'."\r\n";
            $result .= '<input type="checkbox" value="' . $this->$value[1][1] . '">' . "\r\n";
            $result .= '<span class="metro-checkbox">' . $this->$value[1][2] . '</span>';
            $result .= '</label>'."\r\n";

            return $result;
    }
    }
    public function populate($value) {
        $this->setValue($value);
    }
}
